Refactor: Improve Python 3.8+ compatibility & Fix bg_tasks memory leak#90
Open
1822520752 wants to merge 7 commits intoringhyacinth:masterfrom
Open
Refactor: Improve Python 3.8+ compatibility & Fix bg_tasks memory leak#901822520752 wants to merge 7 commits intoringhyacinth:masterfrom
1822520752 wants to merge 7 commits intoringhyacinth:masterfrom
Conversation
…d optimize agent push script
…ntribution guidelines
Author
Description Key Changes:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces several stability improvements and compatibility enhancements:
Python 3.8+ Compatibility:
X | YwithUnion[X, Y]andOptional[X]) inbackend/app.py,scripts/smoke_test.py, andwebp_to_spritesheet.py.Memory Leak Fix:
_cleanup_bg_tasksinbackend/app.pyto auto-remove stale background tasks older than 1 hour.Agent Push Script Optimization:
/root/paths inoffice-agent-push.pyfor better cross-platform support.frontend/office-agent-push.py.**Maintenance:
.gitignoreto exclude IDE configs (.vscode,.idea) and temporary files.Type of change
New Enhancements (Batch 3):
4. Frontend Architecture Optimization:
STATESandBUBBLE_TEXTSfromgame.jstolayout.jsfor easier customization.researchingarea coordinates to provide better visual feedback during state transitions.